kaldin

  • Login

C Programming


1) Which of the following statements are correct about an array?

1:    The array int num[26]; can store 26 elements.
2:    The expression num[1] designates the very first element in the array.
3:    It is necessary to initialize the array at the time of declaration.
4:    The declaration num[SIZE] is allowed if SIZE is a macro.
  • A)

  • B)

  • C)

  • D)

Next
Show Answer:
Show Answer


More Question
Will the program compile in Turbo C #includestdio.hint main() int a=10, j; void k; j=k=&a; j++; k++; printf(u u\n, j, k); return 0;
Point out the error, if any in the program. #includestdio.hint main() int P = 10; switch(P) case 10: printf(Case 1); case 20: printf(Case 2); break; case P: printf(Case 2); break; return 0;
Which of the following statements are correct about the function long fun(int num) int i; long f=1; for(i=1; i=num; i++) f = f i; return f;
Point out the error in the following program. #includestdio.h#includestdarg.hvoid varfun(int n, ...);int main() varfun(3, 7, -11.2, 0.66); return 0;void varfun(int n, ...) float ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf(d, num);
What will be the output of the program #includestdio.hint main() char c=48; int i, mask=01; for(i=1; i=5; i++) printf(c, cmask); mask = mask1; return 0;